<template>
	<view>
		<view class="my-info">
			<text>总业绩：{{my.teamprice}}</text>
			<text>直推人数：{{my.num}}</text>
		</view>
		<view class="share-item" v-for="item in list">
			<view class="base-info">
				<text>昵称：{{item.nickname}}</text>
				<text>手机：{{item.phone}}</text>
			</view>
			<view class='all-price'>
				<text>总业绩：{{item.teamprice}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				my:{},
				list:[]
			}
		},
		onLoad() {
			this.getData();
		},
		methods:{
			getData(){
				this.ajax('user/tjInfo',{
					data:{},
					success:(res) => {
						res = res.data;
						this.my = res.info.list;
						this.list = res.info.info;
					}
				});
			}
		}
	}
</script>

<style>
	.my-info{background: #FFFFFF;font-size: 35upx;height:120upx;line-height: 120upx;padding:0 20upx;}
	.my-info text{margin-right: 20upx;}
	.share-item{font-size: 30upx;width: calc(100% - 80upx);padding:20upx;margin:20upx;box-shadow: 0 1px 1px rgba(26, 26, 26, .2);background: #FFFFFF;border-radius: 2upx;}
	.base-info > text:last-child{float:right}
	.all-price {margin-top: 10upx;}
</style>
